<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-baiduApiToken-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">client_id：</label>
				<div class="col-sm-8">
					<input id="clientId" name="clientId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">session_key：</label>
				<div class="col-sm-8">
					<input id="sessionKey" name="sessionKey" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">session_secret：</label>
				<div class="col-sm-8">
					<input id="sessionSecret" name="sessionSecret" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">过期时间：</label>
				<div class="col-sm-8">
					<input id="expiresIn" name="expiresIn" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">access_token：</label>
				<div class="col-sm-8">
					<input id="accessToken" name="accessToken" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">refresh_token：</label>
				<div class="col-sm-8">
					<input id="refreshToken" name="refreshToken" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">权限作用域：</label>
				<div class="col-sm-8">
					<input id="scope" name="scope" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "express/baiduApiToken"
		$("#form-baiduApiToken-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-baiduApiToken-add').serialize());
	        }
	    }
	</script>
</body>
</html>
